//
//  HrefJudgement.m
//  KaneNote
//
//  Created by HuanJing on 2017/7/26.
//  Copyright © 2017年 HuanJing. All rights reserved.
//

#import "HrefJudgement.h"
#import "FoundationKnowledgeViewController.h"
#import "CharacterIntroduceController.h"

@implementation HrefJudgement

+ (Class)judgementHrefStr:(NSString *)hrefStr {
    if ([hrefStr isEqualToString:@"index.htm"]) {
        NSLog(@"首页界面");
        return [FoundationKnowledgeViewController class];
    } else if ([hrefStr isEqualToString:@"characters.htm"]) {
        NSLog(@"角色介绍");
        return [CharacterIntroduceController class];
    }
    return 0;
}

@end
